<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use DB;

class Member extends Model
{
    //
    use DataTables;

    protected $table = 'member';

    protected $fillable = ['name' , 'avatar','mobile','sex','lev_id','password','status','openid','rongyun_token'];


    public function saveData($data){
        return DB::table($this->table)->insertGetId($data);
    }

}
